<?php
$mypage = 'rex_lang';
$addonPath = $REX['INCLUDE_PATH'].'/addons/'.$mypage;

include $REX['INCLUDE_PATH'].'/layout/top.php';

$toplinks = '<ul><li><a href="./index.php?page=specials&subpage=">' . $I18N->msg('main_preferences') . '</a> | </li><li><a';
if ($subpage=='lang') $toplinks .= ' class="rex-subpage-active"';
$toplinks .= ' href="index.php?page='.$mypage.'&subpage=lang">' . $I18N->msg('languages') . '</a> | </li><li><a';
if ($subpage=='domain') $toplinks .= ' class="rex-subpage-active"';
$toplinks .= ' href="index.php?page='.$mypage.'&subpage=domain">'.$I18N_393->msg("label_domains").'</a></li></ul>';
rex_title($I18N->msg('specials'),$toplinks);


switch($subpage) {
	case "lang": 	require("languages.inc.php");	break;
	case "domain": 	require("domains.inc.php");		break;
	default:		require("languages.inc.php");	break;
}

include $REX['INCLUDE_PATH']."/layout/bottom.php";

?>